<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('系统管理')"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="col-sm-12">

    </div>
    <input type="hidden" id="cacheName">
    <div class="col-sm-12">
    </div>
    <div class="col-sm-12">
        <div class="row">
            <div class="col-sm-3" th:each="platform : ${platformList}">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5 >系统ID：[[${platform.platformId}]]</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row" id="cacheValue">
                            <div class="col-sm-12" th:fragment="fragment-cache-value">
                                <div class="form-group">
                                    <label>系统名称：</label>
                                    <input type="text" class="form-control" th:value="${platform.name}" readonly>
                                    <input type="hidden" id="id" class="form-control" th:value="${platform.platformId}">
                                </div>
                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <a class="btn btn-primary"
                                               th:onclick="menuList([[${platform.platformId}]])">
                                                菜单列表
                                            </a>
                                        </div>
<!--                                        <div class="col-sm-6">-->
<!--                                            <a class="btn btn-primary"-->
<!--                                               th:onclick="roleList([[${platform.platformId}]])">-->
<!--                                                角色模板列表-->
<!--                                            </a>-->
<!--                                        </div>-->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<th:block th:include="include :: footer"/>
<script>
    function menuList(id) {
        var href = ctx + 'sso/menu/menu?platformId=' + id;
        $.modal.openTab("菜单列表", href);
    }

    function roleList(id) {
        var href = ctx + 'sso/role/role?platformId=' + id;
        $.modal.openTab("角色模板列表", href);
    }

    function add() {
        $.modal.open("新增系统", "../sso/platform/add");
    }

</script>
</html>
